<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1.0, user-scalable=0">

		<title>个人资料</title>

		<link href="/static/AmazeUI-2.7.2/AmazeUI-2.7.2/assets/css/padmin.css" rel="stylesheet" type="text/css">
		<link href="/static/AmazeUI-2.7.2/AmazeUI-2.7.2/assets/css/pamazeui.css" rel="stylesheet" type="text/css" />
		<link href="/static/frontend/css/personal.css" rel="stylesheet" type="text/css">
		<link href="/static/frontend/css/infstyle.css" rel="stylesheet" type="text/css">
		 <link rel="stylesheet" href="static/AmazeUI-2.7.2/AmazeUI-2.7.2/assets/css/amazeui.min.css">
         <link rel="stylesheet" href="static/AmazeUI-2.7.2/AmazeUI-2.7.2/assets/css/app.css">
         <script src="/static/AmazeUI-2.7.2/AmazeUI-2.7.2/assets/js/amazeui.min.js"></script>

		
	
		<script src="/static/AmazeUI-2.7.2/AmazeUI-2.7.2/assets/js/jquery-3.3.1.min.js" type="text/javascript"></script>
		<script src="/static/AmazeUI-2.7.2/AmazeUI-2.7.2/assets/js/amazeui.js" type="text/javascript"></script>

			
	</head>

	<body>
		<!--头 -->
		
           {include file="../application/frontend/view/common/ptop.html"}
			<b class="line"></b>
		<div class="center">
			<div class="col-main">
				<div class="main-wrap">

					<div class="user-info">
						<!--标题 -->
						<div class="am-cf am-padding">
							<div class="am-fl am-cf"><strong class="am-text-danger am-text-lg">个人资料</strong> / <small>Personal&nbsp;information</small></div>
						</div>
						<hr/>

						<!--头像 -->
						<div class="user-infoPic">

							<div class="filePic">
								<input type="file" class="inputPic" allowexts="gif,jpeg,jpg,png,bmp" accept="image/*">
								<img class="am-circle am-img-thumbnail" src="/static/frontend/img/getAvatar.do.jpg" alt="" />
							</div>

							<p class="am-form-help">头像</p>
							{foreach $ret as $val}

							<div class="info-m">
								<div><b>用户名：<i>{$val.user_name}</i></b></div>
								<div class="u-level">
									<span class="rank r2">
							             <s class="vip1"></s><a class="classes" href="#">用户等级：{$val.user_level}</a>
						            </span>
								</div>
								<div class="u-safety">
									
								</div>
							</div>
						</div>

						<!--个人信息 -->
					
						<div class="info-main">
							<form class="am-form am-form-horizontal" action="/frontend/information/insert" method="post">

								<div class="am-form-group">
									<label for="user-name2" class="am-form-label">姓名</label>
									<div class="am-form-content">
										<input type="text" id="user-name2" placeholder="{$val.user_name}" name="user-name2">

									</div>
								</div>

								<div class="am-form-group">
									<label for="user-name" class="am-form-label">身份证号</label>
									<div class="am-form-content">
										<input type="text" id="idcard" placeholder="{$val.user_idcard}" name="user-idcard">

									</div>
								</div>

								<div class="am-form-group">
									<label class="am-form-label">性别</label>
									<div class="am-form-content sex">
										<label class="am-radio-inline">
											<input type="radio" name="radio10" id="r1" value="0" data-am-ucheck> 男
										</label>
										<label class="am-radio-inline">
											<input type="radio" name="radio10" id="r2" value="1" data-am-ucheck> 女
										</label>
										
									</div>
								</div>

								<div class="am-form-group">
									<label for="user-birth" class="am-form-label">生日</label>
									<div class="am-form-content birth">
										<div class="am-input-group am-datepicker-date" data-am-datepicker="{format: 'yyyy-mm-dd', viewMode: 'years'}">
									  <input type="text" class="am-form-field" placeholder="{$val.user_birthday}" readonly name="user-birth">
									  <span class="am-input-group-btn am-datepicker-add-on">
									    <button class="am-btn am-btn-default" type="button"><span class="am-icon-calendar"></span> </button>
									  </span>
									</div>

									</div>
							
								</div>
								<div class="am-form-group">
									<label for="user-phone" class="am-form-label">电话</label>
									<div class="am-form-content">
										<input id="user-phone" placeholder="{$val.user_phone}" type="tel" name="user-phone">

									</div>
								</div>
								<div class="am-form-group">
									<label for="user-email" class="am-form-label">电子邮件</label>
									<div class="am-form-content">
										<input id="user-email" placeholder="{$val.user_email}" type="email" name="user-email">

									</div>
								</div>
								{/foreach}
								
								<div class="am-form-group safety">
									<label for="user-safety" class="am-form-label">账号安全</label>
									<div class="am-form-content safety">
										<a href="safety.html">

											<span class="am-icon-angle-right"></span>

										</a>

									</div>
								</div>
								<div class="info-btn">
									<button type="submit" class="am-btn am-btn-danger">保存修改</button>
									
								</div>

							</form>
						</div>

					</div>

				</div>
				<!--底部-->
				{include file="../application/frontend/view/common/pbottom.html" }
			</div>

			{include file="../application/frontend/view/common/pmenu.html" }
		</div>

	</body>

</html>
<script type="text/javascript">
    var flag={$val.user_sex};   
    console.log(flag);
    if(flag==0)
    {
        document.getElementById('r1').checked=true;
    }
    else
    {
    	document.getElementById('r2').checked=true;
    }

</script>